Repository navigation
[haxcms-php] Generate CycloneDX SBOM from composer.lock and attach to releases - #665
Merged
Merged
Conversation
New sbom workflow installs cyclonedx-php-composer 6.2.0 globally, builds a CycloneDX 1.6 JSON SBOM (production deps) for system/backend/php, uploads it as a workflow artifact, and on release publication uploads sbom.cdx.json to the release via a separate job holding contents: write. Refs haxtheweb/issues#3092 Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_01WypLHk36AAKFEbX9stGBhq
Contributor
There was a problem hiding this comment.
Copilot was unable to review this pull request because the user who requested the review has reached their quota limit.
An organization owner can choose the repository organization as the billing source for reviews requested by members with a paid Copilot license. Learn about Copilot code review billing.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to subscribe to this conversation on GitHub.
Already have an account?
Sign in.
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
What changed
New workflow
.github/workflows/sbom.yml:cyclonedx/cyclonedx-php-composer6.2.0 globally (latest release per its GitHub releases) so the project's composer files are not modified; allow-plugins is set only for that package, globally.composer CycloneDX:make-sbom --output-format=JSON --spec-version=1.6 --omit=dev --validateagainstsystem/backend/php/composer.jsonand uploadssbom.cdx.jsonas artifactsbom-cyclonedx.release: published, a second job (the only one withcontents: write) uploadssbom.cdx.jsonto the release. Top-level permissions arecontents: read.Decisions / caveats
--omit=dev); drop that flag to include phpunit etc.actions/upload-artifact@v7andactions/download-artifact@v8use major tags, not full SHAs, because I could not verify commit SHAs via WebFetch. Checkout and setup-php reuse the SHAs already pinned in the repo. Please pin upload/download-artifact before merge if desired.release: published; releases created in the UI do. SBOM is not covered by the SHA256SUMS in the sibling PR.Files touched
.github/workflows/sbom.yml(new)Testing
--validate, and the output shape are unverified. The workflow has not run on GitHub Actions.Refs haxtheweb/issues#3092
Generated by Claude Code